Cut paste join

cut

cut 文件的列,列可以是 tab 分割的列(用 -f 参数),也可以是指定的区段的字符(用 -b 参数)。

paste

example:

$ cat names
Tony
Emanuel
...

$ cat numbers
(307) 555-5356
(212) 555-3456

$ cat addresses
55-23 Vine Street, Miami
39 University Place, New York

$ paste names addresses numbers
Tony    55-23 Vine Street, Miami       (307) 555-5356
Emanuel 39 University Place, New York  (212) 555-3456

join

join lines of two files on a common field

Homepage
Comments

Hide Comments